package cn.edu.fzu.delivery.mapper;

import cn.edu.fzu.delivery.domain.entity.NetworkApply;
import cn.edu.fzu.delivery.domain.enums.NetworkApplyStatusEnum;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author yifan
 * @date 2022/11/12
 */
public interface NetworkApplyMapper {
    Integer apply(@Param("name") String name,
                  @Param("areaId") Long areaId,
                  @Param("address") String address,
                  @Param("desc") String desc,
                  @Param("applicantId") Long applicantId);

    Integer handleApply(@Param("pid") Long id,@Param("status") NetworkApplyStatusEnum status, @Param("reviewerId") Long reviewerId);

    List<NetworkApply> list(@Param("name") String name,
                            @Param("areaIdList") List<Long> areaIdList, @Param("address") String address,
                            @Param("desc") String desc, @Param("applicantId") Long applicantId,
                            @Param("reviewerId") Long reviewerId, @Param("status") NetworkApplyStatusEnum status,
                            @Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
